package com.xhga.transaction;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ComponentScan(basePackages = {
		"com.xhga.transaction.common",
		"com.xhga.transaction.log"})
@ImportResource(locations = "classpath:dubbo-provider.xml")
public class XhgaLogApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(XhgaLogApplication.class, args);
	}
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(XhgaLogApplication.class);
	}

}
